import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'


// 引入必要的文件-开始
import store from './store'
import api from './api'
import util from './common/util.js'
import {Api_url} from 'common/config.js'
import minxin from './common/mixins/shopro-share.js'
import http from './common/axios.js'
Vue.prototype.$getimg = Api_url
//Vue.use(ElementUI);
App.mpType = 'app'

Vue.prototype.$store = store
Vue.prototype.$api = api
Vue.prototype.$api = http
Vue.prototype.$util = util
Vue.prototype.$getimg = Api_url
Vue.mixin(minxin)

// 引入必要的文件-End



Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
export function createApp() {
  const app = createSSRApp(App)
  return {
    app
  }
}
// #endif